package com.fits.auth.client.service;

import com.fits.framework.core.response.Result;
import com.fits.starter.common.security.Oauth2TokenDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "fits-auth", contextId = "AuthService")
public interface AuthService {
    @PostMapping(value = "/oauth/token")
    Result<Oauth2TokenDTO> postAccessToken(@RequestParam Map<String, String> parameters);
}
